<?php
    
    require_once('includes/general.php');
    if(!tep_db_checkDb()) die('ko ket noi dc csdl');
    $content='';
    $sql='select * from tbl_cong_ty';
                $kq=tep_db_query($sql); 
    $content.='<div id="menu_left">
                <div class="menu_top"></div>
                <div class="menu_content">
                    <h2>Sơ Lược Về Công Ty</h2>
                        <ul class="menu">';
    while($item=tep_db_fetch_array($kq)){
        $content.='<li><a href="?page=angellife&amp;part='.$item['id'].'">'.$item['tieu_de'].'</a></li>';
    }
    $content.='    </ul>
                </div>
                <div class="menu_bottom"></div>
            </div>';
/**
 *     $sql1='select * from tbl_cong_ty';
 *     $kq1=tep_db_query($sql1);
 *     $content.='<div id="main_content">
 *     <h1> ..:::.. Angel Life ..:::.. </h1>';
 *     $item1=tep_db_fetch_array($kq1);
 *     $content.='<h3 class="tieude">'.$item1['tieu_de'].'</h3>
 *     <div id="noidung">'.$item1['mo_ta_chi_tiet'].'</div>';
 *     
 *     $content.='</div>';
 */
    if(isset($_GET['part'])){
         $part=$_GET['part'];
         $sql='select * from tbl_cong_ty where id='.$part;
    }else{
        $sql='select * from tbl_cong_ty limit 1';
    }   
    $kq=tep_db_query($sql);   
    $item1=tep_db_fetch_array($kq);                         
    $content.='<div id="main_content">
    <h1> ..:::.. '.$item1['tieu_de'].' ..:::.. </h1>';
    $content.=' <div id="noidung">'.$item1['mo_ta_chi_tiet'].'</div>';
    $content.='</div>'; 
    echo $content;
?>
   

